package com.rms.hkpc.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.rms.hkpc.activity.MainActivity;
import com.rms.hkpc.constant.AllConstants;

public class NotificationReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent intentGo = new Intent(context, MainActivity.class);
        intentGo.putExtra(AllConstants.WHAT, 2);
        intentGo.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intentGo);
    }
}
